class_name TagStateComponent
extends StateComponent

##
var _tags: Array[String]


func _init(init_name: String, init_tags: Array[String]) -> void:
	super(init_name)
	_tags = init_tags


func _on_setup() -> void:
	pass


func _on_enter() -> void:
	parent.owner.tag_manager.add_tags(_tags)


func _on_update(_delta: float) -> void:
	pass


func _on_exit() -> void:
	parent.owner.tag_manager.remove_tags(_tags)
